import os
from os.path import dirname, abspath
ROOT_DIR = dirname(dirname(abspath(__file__)))
from config.database import DATABASES, DATABASES_DEBUG


class Base(object):
    DEBUG = True
    LOG_LEVEL = "DEBUG"
    DATA_DIR = os.path.join(ROOT_DIR, 'data')
    LOGS_DIR = os.path.join(ROOT_DIR, 'logs')


class Development(Base):
    DATABASES = {
        'kb': DATABASES_DEBUG['kb_db'],
    }


class Production(Base):
    DATABASES = {
        'kb': DATABASES['kb_db'],
    }


CONFIG = {
    'development': Development,
    'production': Production,
}